package com.jun.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jun.mapper.SysUserMapper;
import com.jun.pojo.entity.SysUser;
import com.jun.pojo.vo.SysUserVo;
import com.jun.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {

    @Autowired
    private SysUserMapper sysUserMapper;

    @Override
    public SysUser getUser(SysUser sysUser) {
        return sysUserMapper.getUser(sysUser);
    }

    @Override
    public int updateUser(SysUserVo sysUservo) {
        return sysUserMapper.updateUser(sysUservo);
    }

    @Override
    public boolean saveUser(SysUserVo sysUservo) {
        return sysUserMapper.saveUser(sysUservo);
    }
}
